﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;  //Audit 审计  

namespace XfTech.SmartTms.Entities
{
    public class Book : AuditedAggregateRoot<Guid> //添加审计字段

    /// <summary>
    /// 设计实体类型（根聚合）
    /// </summary>
    //public class Book : BasicAggregateRoot<Guid>  //Abp推荐用Guid作为主键的类型
    {
        public string Name { get; set; }

        public Guid TId { get; set; }       //图书类型的外键字段

        public BookType Type { get; set; }

        public DateTime PublishDate { get; set; }

        public decimal Price { get; set; }
    }
}
